package edu.iss.demo.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import edu.iss.demo.model.Employee;
import edu.iss.demo.repository.EmployeeRepository;
@Service
public class EmployeeServiceImpl implements EmployeeService
{
	@Resource
	private EmployeeRepository emprep;

	@Override
	@Transactional
	public Employee create(Employee emp)
	{
		Employee enew=emp;
		return emprep.save(enew);
	}

}
